##
## Makefile for Makefile in /u/all/veau-g_a/cu/rendu/c/zappy2010/graphic
## 
## Made by adrien veau-greiner
## Login   <veau-g_a@epitech.net>
## 
## Started on  Thu May 13 12:21:33 2010 adrien veau-greiner
## Last update Mon Jun 14 14:27:23 2010 adrien veau-greiner
##

CC	=	gcc

NAME	=	client-fx

SRC	=	main.c \
		get_entry.c \
		aff.c \
		client_handler.c \
		my_select.c \
		error.c \
		check_fd.c \
		connect_server.c \
		destruct_cl.c \
		manage_display.c \
		manage_ringbuffer.c \
		manage_players_id.c \
		start_client.c \
		get_players_infos.c \
		set_players_infos.c \
		init_ringbuffer.c \
		init_sprite_action.c \
		init_display.c \
		init_cl.c \
		init_fd.c \
		load_box.c \
		load_map.c \
		load_players.c \
		load_ressource.c \
		load_back.c \
		utils.c \
		check_command.c \
		cmd_init.c \
		cmd_bct.c \
		cmd_sgt.c \
		cmd_msz.c \
		cmd_tna.c \
		cmd_pnw.c \
		cmd_ppo.c \
		cmd_plv.c \
		cmd_pin.c \
		cmd_pex.c \
		cmd_pbc.c \
		cmd_pic.c \
		cmd_pie.c \
		cmd_pfk.c \
		cmd_pdr.c \
		cmd_pgt.c \
		cmd_pdi.c \
		cmd_enw.c \
		cmd_eht.c \
		cmd_ebo.c \
		cmd_edi.c \
		cmd_seg.c \
		cmd_smg.c \
		cmd_suc.c \
		cmd_sbp.c \
		receive_command.c \
		str_to_wordtab.c \
		xfunctions.c \
		disconnect.c

VPATH	=	./sources:./includes

OBJ	=	$(SRC:.c=.o)

INCLUDE	=	-I./includes/

CFLAGS	=	-W -Wall -ansi -pedantic -g3 `sdl-config --cflags` $(INCLUDE)

LDFLAGS	=	`sdl-config --libs` -lSDL -lSDL_image -lSDL_ttf

$(NAME): $(OBJ)
	$(CC) $(LDFLAGS) -o $(NAME) $(OBJ)

all: $(NAME)

clean:
	rm -fr $(OBJ)
	rm -fr *~

re: clean all

fclean:
	rm $(NAME)


